import React, { useReducer } from 'react'
import 'taro-ui/dist/style/index.scss'

import { CommonContext, reducer, initState } from './store';
import './app.less'
import { AtModal, AtModalContent } from "taro-ui"


export default (props) => {
  const state = useReducer(reducer, initState);
  return (
    <CommonContext.Provider value={state}>
      <>
        {props.children}
        {/* <AtModal isOpened={true}>
          <AtModalContent>
            这里是正文内容，欢迎加入京东凹凸实验室
            </AtModalContent>
        </AtModal> */}
      </>

    </CommonContext.Provider>
  )
}
